package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付配置对象 pay_config
 * 
 * @author ruoyi
 * @date 2024-07-30
 */
public class PayConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 支付方式 0 微信 1 支付宝 */
    @Excel(name = "支付方式 0 微信 1 支付宝")
    private Long payWay;

    /** 商户号 微信必填 支付宝无需填写 */
    @Excel(name = "商户号 微信必填 支付宝无需填写")
    private String mchId;

    /** 商户序列号 微信必填 支付宝无需填写 */
    @Excel(name = "商户序列号 微信必填 支付宝无需填写")
    private String mchSerialNumber;

    /** 商户密钥 微信必填 支付宝无需填写 */
    @Excel(name = "商户密钥 微信必填 支付宝无需填写")
    private String api3Key;

    /** 微信 appid / 支付宝 appid 必填 */
    @Excel(name = "微信 appid / 支付宝 appid 必填")
    private String appId;

    /** 回调url 必填 */
    @Excel(name = "回调url 必填")
    private String notifyUrl;

    /** 微信公钥 支付宝公钥 必填 */
    @Excel(name = "微信公钥 支付宝公钥 必填")
    private String publicKey;

    /** 微信私钥 支付宝私钥 必填 */
    @Excel(name = "微信私钥 支付宝私钥 必填")
    private String privateKey;

    /** 支付宝专用 回调url */
    @Excel(name = "支付宝专用 回调url")
    private String returnUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPayWay(Long payWay) 
    {
        this.payWay = payWay;
    }

    public Long getPayWay() 
    {
        return payWay;
    }
    public void setMchId(String mchId) 
    {
        this.mchId = mchId;
    }

    public String getMchId() 
    {
        return mchId;
    }
    public void setMchSerialNumber(String mchSerialNumber) 
    {
        this.mchSerialNumber = mchSerialNumber;
    }

    public String getMchSerialNumber() 
    {
        return mchSerialNumber;
    }
    public void setApi3Key(String api3Key) 
    {
        this.api3Key = api3Key;
    }

    public String getApi3Key() 
    {
        return api3Key;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setNotifyUrl(String notifyUrl) 
    {
        this.notifyUrl = notifyUrl;
    }

    public String getNotifyUrl() 
    {
        return notifyUrl;
    }
    public void setPublicKey(String publicKey) 
    {
        this.publicKey = publicKey;
    }

    public String getPublicKey() 
    {
        return publicKey;
    }
    public void setPrivateKey(String privateKey) 
    {
        this.privateKey = privateKey;
    }

    public String getPrivateKey() 
    {
        return privateKey;
    }
    public void setReturnUrl(String returnUrl) 
    {
        this.returnUrl = returnUrl;
    }

    public String getReturnUrl() 
    {
        return returnUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("payWay", getPayWay())
            .append("mchId", getMchId())
            .append("mchSerialNumber", getMchSerialNumber())
            .append("api3Key", getApi3Key())
            .append("appId", getAppId())
            .append("notifyUrl", getNotifyUrl())
            .append("publicKey", getPublicKey())
            .append("privateKey", getPrivateKey())
            .append("returnUrl", getReturnUrl())
            .toString();
    }
}
